14. Fast Code

Fast Code

Which of the following are good strategies for writing performant code?

SOLUTION:
  • Cache variables wherever possible
  • Avoid creating and destroying objects at runtime
  • Keep code like Debug.Log and GameObject.Find out of Update()